package factory.abstractFactory;import factory.abstractFactory.NewPizza;/** * Created by Administrator on 2018-10-22. */public class ClamPizza extends NewPizza {    PizzaIngredientFactory pizzaIngredientFactory;    public ClamPizza(PizzaIngredientFactory pizzaIngredientFactory){        this.pizzaIngredientFactory = pizzaIngredientFactory;    }    void prepare() {       System.out.println("preparing" + name);       dough = pizzaIngredientFactory.createDough();       sauce = pizzaIngredientFactory.cracteSauce();       cheese=pizzaIngredientFactory.createCheese();       clams =pizzaIngredientFactory.createClams();    }}